package cn.tjie.org.mapper;

import cn.tjie.org.domain.Shop;
import cn.tjie.basic.mapper.BaseMapper;
import cn.tjie.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tjie
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findNameAndAddress(Shop shop);


    void updateState(@Param("state") Integer state, @Param("shopId") Long shopId);

    void patchAdd(List<Shop> shops);

    List<ShopDto> echarts();
}
